package com.it.d2_polymorphism;

public class Student extends People {

    public String name = "子类Student的名称";

    // 方法重写
    @Override
    public void run() {
        System.out.println("学生跑的贼快");
    }

    public void test() {
        System.out.println("学生需要考试");
    }

}
